home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / docs / hdfvset.lha / HDFVset.apdx.d < prev    next >
Text File  |  1980-02-08  |  2KB  |  80 lines

  1. D.1    NCSA HDF Vset
  2.  
  3.  
  4. Source Files    D.1
  5.  
  6.  
  7. National Center for Supercomputing Applications
  8.  
  9.  
  10. November 1990
  11.  
  12.  
  13.                                                                 
  14.  
  15.  
  16. November 1990
  17.  
  18.  
  19.  
  20.  
  21.  
  22. Appendix  D    Source Files
  23.  
  24.  
  25.  
  26. Overview
  27.  
  28. This appendix lists the source files needed to create the HDF Vset 
  29. library.
  30.  
  31.  
  32. Source Files
  33.  
  34. In addition to your existing HDF library, libdf.a (release 3.0 or 
  35. later), as well as existing include-files df.h and dfi.h, you need 
  36. the following source files for the HDF Vset:
  37.  
  38.     vg.c
  39.     vsetf.c
  40.     vrw.c
  41.     vio.c
  42.     vconv.c
  43.     vparse.c
  44.     vsetf.c
  45.     vgp.c
  46.     vg.h
  47.  
  48. Use the file makefile (in the same directory) to create  the HDF 
  49. Vset library, libvg.a.  Remember to set the machine type in the 
  50. makefile  (e.g., "MACHINE=SUN").
  51.  
  52. You may also simply compile the C source files and then create the 
  53. library from the object files. For example, on the Sun workstation 
  54. running UNIX, create the library as outlined below.
  55.  
  56. 1.    To create the object files, compile the C source files by entering:
  57.  
  58.     cc -c vg.c vsetf.c vrw.c vio.c vconv.c vparse.c 
  59.     vsetf.c vgp.c -D<machine>
  60.  
  61. 2.    To create the library from the object files, enter:
  62.  
  63.     ar -r libvg.a vg.o vsetf.o vrw.o vio.o vconv.o 
  64.     vparse.o vsetf.o vgp.o
  65.     ranlib libvg.a
  66.  
  67. Note that this library only contains HDF Vset routines.
  68.  
  69. 3.    To create an executable, compile and link your application 
  70. source with the vertex-set library (libvg.a) and the basic HDF 
  71. library (libdf.a). Enter:
  72.  
  73.     cc myprog.c libvg.a libdf.a -o myprog
  74.  
  75. For example, if you name your program plane, you would enter:
  76.  
  77.     cc plane.c libvg.a libdf.a -o plane
  78.  
  79.  
  80.